<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container {
            margin: 10px;
            display: flex;
            width: 500px;
            height: 200px;
            background-color: #eee;
            text-align: center;
            line-height: 100px;
            color: #666;
        }

        .item {
            width: 100px;
            height: 100px;
        }

        .a {
            flex-basis: 200px;
            background-color: #ff4466;
        }

        .b {
            max-width: 50px;
            flex-basis: 150px;
            background-color: #42b983;
        }

        .c {
            background-color: #61dafb;
        }
    </style>
</head>

<body>
    <!-- https://juejin.cn/post/6844904016439148551#heading-0 -->
    <!-- 上面的例子可以通过最终元素的宽度看出几个属性的优先级关系： -->
    <!-- max-width/min-width > flex-basis > width > box -->
    <div class="container">
        <div class="item a">A</div>
        <div class="item b">B</div>
        <div class="item c">C</div>
    </div>


</body>

</html>